@extends('layouts.index')

@section('content')

<div class="flex items-center">
    <div class="ml-4 text-lg leading-7 font-semibold">
        <a href="/questions/create">试题列表</a>
    </div>
</div>

<div class="ml-12">
    <div>{{ \Session::get('message')}}</div>
    <div class="mt-2 text-gray-600 dark:text-gray-400 text-sm">
        <ul style="list-style: none;">
            @foreach ($questions as $i => $question)
            <li style="float:left;width: 200px;margin-bottom: 10px;">
                <a href="/questions/{{$i}}" style="<?php echo empty($question) ? '' : 'color: #0045c1;font-weight: bold;' ?>">
                    QUESTION {{$i}}
                    @empty($question)
                    空
                    @endempty
                </a>
            </li>
            @endforeach
        </ul>
    </div>
</div>

@stop